<?php

Yii::import('zii.widgets.CPortlet');

class NewsPortlet extends CPortlet
{
	public $title='Aktuell:';

	public function getLastNews()
	{
		return News::model()->findLastNews(Yii::app()->params['newsPerPage']);
	}

	protected function renderContent()
	{
		$this->render('newsPortlet');
	}

}